package cn.wolfcode.luowowo.article.service.impl;

import cn.wolfcode.luowowo.article.domain.Tag;
import cn.wolfcode.luowowo.article.mapper.TagMapper;
import cn.wolfcode.luowowo.article.service.ITagService;
import com.alibaba.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class TagServiceImpl implements ITagService{

    @Autowired
    private TagMapper tagMapper;

    @Override
    public List<Tag> listAll() {
        return tagMapper.selectAll();
    }

    @Override
    public void save(Tag tag) {
        tagMapper.insert(tag);
    }
}
